<?php
/**
 * 团队页面配置文件
 */

return [
    // 缓存设置
    'cache' => [
        'enabled' => true,
        'ttl' => 300, // 5分钟
        'directory' => __DIR__ . '/../cache/team'
    ],
    
    // 日志设置
    'logging' => [
        'enabled' => true,
        'level' => 'info', // debug, info, warning, error
        'file' => __DIR__ . '/../logs/team.log',
        'max_size' => 10485760, // 10MB
        'max_files' => 5
    ],
    
    // 分页设置
    'pagination' => [
        'team_members_limit' => 50,
        'commissions_limit' => 20,
        'default_page_size' => 10
    ],
    
    // 二维码设置
    'qr_code' => [
        'default_size' => 300,
        'error_correction' => 'L', // L, M, Q, H
        'margin' => 4,
        'module_size' => 3
    ],
    
    // 团队设置
    'team' => [
        'commission_rate' => 0.4, // 40%
        'min_commission' => 0.01, // 最小分成金额
        'max_team_size' => 1000   // 最大团队人数
    ],
    
    // 安全设置
    'security' => [
        'rate_limit' => [
            'enabled' => true,
            'max_requests' => 100,
            'time_window' => 3600 // 1小时
        ],
        'csrf_protection' => true,
        'xss_protection' => true
    ],
    
    // 性能设置
    'performance' => [
        'enable_compression' => true,
        'enable_minification' => false,
        'cache_headers' => true,
        'lazy_loading' => true
    ],
    
    // 移动端设置
    'mobile' => [
        'responsive_breakpoints' => [
            'mobile' => 768,
            'tablet' => 1024,
            'desktop' => 1200
        ],
        'touch_optimization' => true,
        'gesture_support' => true
    ],
    
    // 功能开关
    'features' => [
        'qr_code_generation' => true,
        'team_statistics' => true,
        'commission_tracking' => true,
        'invite_system' => true,
        'export_data' => false,
        'real_time_updates' => false
    ],
    
    // 错误处理
    'error_handling' => [
        'display_errors' => false,
        'log_errors' => true,
        'error_reporting' => E_ALL,
        'custom_error_pages' => true
    ],
    
    // 国际化设置
    'i18n' => [
        'default_language' => 'zh-CN',
        'supported_languages' => ['zh-CN', 'en-US'],
        'date_format' => 'Y-m-d H:i:s',
        'number_format' => [
            'decimal_separator' => '.',
            'thousands_separator' => ',',
            'decimal_places' => 2
        ]
    ]
];
?>
